package com.yidu.ReportManagement.controller;

import com.yidu.DailyFinalTreatment.entity.IncomePaymentEntity;
import com.yidu.ReportManagement.entity.Bargin;
import com.yidu.ReportManagement.service.Bargins;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
public class BarginController {
    @Autowired
    Bargins bargins;

    @RequestMapping("cashBargin")
    public Map cashBargin(){
        List<Bargin> barginList = bargins.selectBargin();
        Map map = new HashMap();
        map.put("code",0);
        map.put("count",0);
        map.put("msg","");
        map.put("data",barginList);
        return map;
    }
}
